{{$website_privacy_policy_url := .Site.Params.cookies }}
{{ with resources.Get "js/cookie-consent/4.1.0/cookie-consent.js" | minify | fingerprint "sha512" }}
<!-- Cookie Consent by TermsFeed https://www.TermsFeed.com -->
<script type="text/javascript" src="{{ .Permalink }}" charset="UTF-8" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
{{ end }}

<script type="text/javascript" charset="UTF-8">
    document.addEventListener('DOMContentLoaded', function () {
        cookieconsent.run({ "notice_banner_type": "simple", "consent_type": "implied", "palette": "dark", "language": "{{.Site.Language.Lang}}", "page_load_consent_levels": ["strictly-necessary", "functionality", "tracking", "targeting"], "notice_banner_reject_button_hide": false, "preferences_center_close_button_hide": false, "page_refresh_confirmation_buttons": false, "website_name": "", "website_privacy_policy_url": {{ $website_privacy_policy_url }} });
    });
</script>

<!-- Unnamed script -->
<!-- Yandex.Metrika counter -->
<script type="text/plain" data-cookie-consent="tracking">
{{ `(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
   m[i].l=1*new Date();
   for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
   k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
   (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");

   ym(` | safeHTML }}{{.Site.Params.yandextracking}}{{`,"init", {
        clickmap:true,
        trackLinks:true,
        accurateTrackBounce:true
   }); ` | safeHTML }}
</script>
<noscript>
    <div><img src="https://mc.yandex.ru/watch/{{.Site.Params.yandextracking}}" style="position:absolute; left:-9999px;" alt="" /></div>
</noscript>
<!-- /Yandex.Metrika counter -->
<!-- end of Unnamed script-->

<noscript>Free cookie consent management tool by <a href="https://www.termsfeed.com/">TermsFeed</a></noscript>
<!-- End Cookie Consent by TermsFeed https://www.TermsFeed.com -->
